
<style>
 body {font-family: Verdana; font-size: 12px; padding: 10px 10px}
 a {text-decoration: none}
 a:hover {text-decoration: underline}
 .fa {color: orange}
</style>

<script type="passcript">

procedure showcustomers();
begin
 { Report code }
 s := '<report-objects><object name="cust" '+
   'sql="select * from customer where upper(company) like ''%%{{SEARCH}}%%'' order by company"/>'+
    '</report-objects>'+
  '{{#cust.ROWDATA}}'+
  '<p><i class="fa fa-user"/> <a href="#">{{COMPANY}}</a></p>'+
  '{{/cust.ROWDATA}}';
  Async(
   function(value: string): string; 
   begin 
    Result := RunHtReport(s, '<CONTEXT SEARCH="' + AnsiUpperCase(value) + '"/>');
   end,
   procedure(value, s: string); 
   begin
    $('#cust').html := s;
    document.refresh();
  end,
  this.value
 );
end;

</script>
Type customer name:
<input type="text" onchange="if Assigned(custsearch) then ClearInterval(custsearch);
   custsearch:=SetTimeout(@showcustomers, 300);">
<div id="cust"></div>
